package cn.com.cfae.iras.doc.analyze.beans.web;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

/**
 * Created by 佟媛媛 on 18/10/25.
 */
public class Detail {
    @JsonProperty("catalog_id")
    private String catalogId;
    @JsonProperty("rule_name")
    private String ruleName;
    private List<Result> results;

    public String getCatalogId() {
        return catalogId;
    }

    public void setCatalogId(String catalogId) {
        this.catalogId = catalogId;
    }



    public String getRuleName() {
        return ruleName;
    }

    public void setRuleName(String ruleName) {
        this.ruleName = ruleName;
    }

    public List<Result> getResults() {
        return results;
    }

    public void setResults(List<Result> results) {
        this.results = results;
    }

    public class Result{
        private String uid;
        @JsonProperty("chapater_id")
        private String chapterId;
        private String keyword;
        @JsonProperty("prompt_message")
        private String promptMessage;
        @JsonProperty("annotation_flag")
        private Boolean annotationFlag;
        @JsonProperty("regulation_id")
        private String regulationId;
        @JsonProperty("page_num")
        private Integer pageNum;
        @JsonProperty("text_position")
        private List<TextPosition> textPosition;

        public void setAnnotationFlag(Boolean annotationFlag) {
            this.annotationFlag = annotationFlag;
        }

        public Boolean getAnnotationFlag(){
            return annotationFlag;
        }

        public Integer getPageNum() {
            return pageNum;
        }

        public void setPageNum(Integer pageNum) {
            this.pageNum = pageNum;
        }

        public String getKeyword() {
            return keyword;
        }

        public void setKeyword(String keyword) {
            this.keyword = keyword;
        }

        public String getUid() {
            return uid;
        }

        public void setUid(String uid) {
            this.uid = uid;
        }

        public String getPromptMessage() {
            return promptMessage;
        }

        public void setPromptMessage(String promptMessage) {
            this.promptMessage = promptMessage;
        }


        public String getRegulationId() {
            return regulationId;
        }

        public void setRegulationId(String regulationId) {
            this.regulationId = regulationId;
        }



        public List<TextPosition> getTextPosition() {
            return textPosition;
        }

        public void setTextPosition(List<TextPosition> textPosition) {
            this.textPosition = textPosition;
        }

        public String getChapterId() {
            return chapterId;
        }

        public void setChapterId(String chapterId) {
            this.chapterId = chapterId;
        }
    }

    public class TextPosition{
        private Double x;
        private Double y;
        private String content;

        public Double getX() {
            return x;
        }

        public void setX(Double x) {
            this.x = x;
        }

        public Double getY() {
            return y;
        }

        public void setY(Double y) {
            this.y = y;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }
    }
}
